<%@ page %><%--
  Created by IntelliJ IDEA.
  User: 754165242
  Date: 2022/3/7
  Time: 18:01
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" import="java.util.Random" %>
<%@ page import="java.util.ArrayList" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%--作为java程序使用--%>
    <%
        Random r= new Random();
        int n = r.nextInt(10) + 1;
        System.out.println(n);

        ArrayList<String> list = new ArrayList<>();
        list.add("孙悟空");
        System.out.println(list);
    %>
</body>
</html>
